package com.tron.dobest.java.troninnerclass;



public class TronOuterClass {
    private String a = "a";
    private static String b = "b";
    private StaticInnerClass staticInnerClass;
    private PublicInnerClass publicInnerClass;

    public static void e() {
        StaticInnerClass staticInnerClass = new StaticInnerClass();
        System.out.println(staticInnerClass);
    }
    /**
     * 静态内部类
     */
     static class StaticInnerClass {
         public StaticInnerClass() {
             System.out.println("StaticInnerClass init");
         }
        public void test() {
            System.out.println(b);
        }
    }

    /**
     * 成员内部类
     */
    public class PublicInnerClass{
        public PublicInnerClass() {
            System.out.println("PublicInnerClass init");
        }
        public void test() {
            System.out.println(a);
        }
    }


}
